package org.bulu.project.system.model.form;

import lombok.Data;
import org.bulu.project.system.enums.FormTypeEnum;
import org.bulu.project.system.enums.QueryTypeEnum;

import java.util.List;

/**
 * 代码生成配置表单
 *
 * @author Ray
 * @since 2.10.0
 */
@Data
public class GenConfigForm {

    private Long id;

    private String tableName;

    private String businessName;

    private String moduleName;

    private String packageName;

    private String entityName;

    private String author;

    private Long parentMenuId;

    private List<FieldConfig> fieldConfigs;

    @Data
    public static class FieldConfig {

        private Long id;

        private String columnName;

        private String columnType;

        private String fieldName;

        private Integer fieldSort;

        private String fieldType;

        private String fieldComment;

        private Integer isShowInList;

        private Integer isShowInForm;

        private Integer isShowInQuery;

        private Integer isRequired;

        private Integer maxLength;

        private FormTypeEnum formType;

        private QueryTypeEnum queryType;

        private String dictType;

    }
}
